From 02a32d8827e884730d22ddee4c479577cd1e90ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pali=20Roh=C3=A1r?= <pali.rohar@gmail.com>
Date: Wed, 26 Jun 2019 17:41:54 +0200
Subject: [PATCH] configure: Use AS_IF macro for C99 check

[Retrieved from:
https://github.com/pali/udftools/commit/02a32d8827e884730d22ddee4c479577cd1e90ac]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 configure.ac | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 2db31d0..315fb26 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,9 +10,7 @@ AC_PROG_CC_C99
 AC_DISABLE_SHARED
 AM_PROG_LIBTOOL
 
-if test "$ac_cv_prog_cc_c99" = "no"; then
-	AC_MSG_ERROR([Your C compiler does not support ISO C99.])
-fi
+AS_IF([test "$ac_cv_prog_cc_c99" = "no"], [AC_MSG_ERROR([Your C compiler does not support ISO C99.])])
 
 dnl Checks for libraries.
 AC_CHECK_LIB(readline, readline, [ ])
